﻿using System.Web;
using System.Web.Mvc;

namespace IceDog.DNF.Program.Mvc5.Areas.Movie.Controllers
{
    public class HelloWorldController : Controller
    {
        // 
        // GET: /HelloWorld/ 

        public string Index()
        {
            return "This is my <b>default</b> action...";
        }

        // 
        // GET: /HelloWorld/Welcome/ 
        public string Welcome(string name, int numTimes = 1,int id=1)
        {
            return HttpUtility.HtmlEncode("id:"+id+":Hello " + name + ", NumTimes is: " + numTimes);
        }

        // 
        // GET: /HelloWorld/Welcome2/ 
        public string Welcome2(string name, int numTimes = 1, int id = 1)
        {
            return HttpUtility.HtmlEncode("id:" + id + ":Hello " + name + ", NumTimes is: " + numTimes);
        }
    }
}